package prefix.integration.wm;

public class WMException extends Exception {

    /**
     * 
     */
    private static final long serialVersionUID = 7712271867231185864L;

    public enum CODE {
        INVALIDE_PARAMETER,
        INVALIDE_WALLET,
        NOT_ENOUGH_MONEY,
        INTERNAL_TRANSFER_ERROR,
        INVALID_WALLET_TYPE,
        UNKNOWN,
        NOT_ENOUGH_PENDING_INVEST_TO_RELEASE,
        FROM_TO_WALLET_SAME,
        NO_TRANSACTION,
        NO_MONEY_TRANSFER,
        INVALID_WALLET

    }

    private CODE m_code;

    public CODE getM_code() {
        return m_code;
    }

    public WMException(CODE code) {
        super(code.toString());
        this.m_code = code;
    }

    public WMException(CODE code, Exception e) {
        super(e);
        this.m_code = code;
    }

}
